package work20241207_chap8.m;

/**
 * @author zdl
 * @date 2024/12/7
 */
interface IA {
    void m1();
    public void m2();
    public abstract void m3();
}
interface IB{}
abstract class Super{}
class Sub1 extends Super{}
class Sub2 extends Super{}
public class TestInterface{
    public static void main(String args[]){
        Super sup = new Sub1();
        Sub1 sub1 = (Sub1)sup;
//1
        //Sub2 sub2 = (Sub2) sup;
        //Sub2 sub2 = (Sub2) sub1;
        //IA ia = (IA) sup;
         IB ia = (IB) sub1;
    }
}
